home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / updates / update31.zoo / test / diffs
Encoding:
Text File  |  1993-05-29  |  3.2 KB  |  119 lines

  1. ===================================================================
  2. RCS file: /net/acae127/home/bammi/etc/src/master/atari/test/Changelo,v
  3. retrieving revision 1.4
  4. diff -c -r1.4 Changelo
  5. *** 1.4    1993/05/21 15:35:39
  6. --- Changelo    1993/05/29 21:19:47
  7. ***************
  8. *** 46,48 ****
  9. --- 46,53 ----
  10.       should not effect lexicograhical ordering.
  11.   
  12.   ----------------------  Patchlevel 06 --------------------------------------
  13. + tscanf.c:: ++jrb
  14. +     add test case for "%Ns" bug discovered by warwick in scanf.c
  15. + ----------------------  Patchlevel 07 --------------------------------------
  16. ===================================================================
  17. RCS file: /net/acae127/home/bammi/etc/src/master/atari/test/PatchLev.h,v
  18. retrieving revision 1.6
  19. diff -c -r1.6 PatchLev.h
  20. *** 1.6    1993/05/21 15:35:42
  21. --- PatchLev.h    1993/05/29 21:19:48
  22. ***************
  23. *** 1,5 ****
  24.   
  25. ! #define    PatchLevel "06"
  26.   
  27.   /*
  28.    *
  29. --- 1,5 ----
  30.   
  31. ! #define    PatchLevel "07"
  32.   
  33.   /*
  34.    *
  35. ===================================================================
  36. RCS file: /net/acae127/home/bammi/etc/src/master/atari/test/tscanf.c,v
  37. retrieving revision 1.1
  38. diff -c -r1.1 tscanf.c
  39. *** 1.1    1992/03/26 21:49:31
  40. --- tscanf.c    1993/05/29 21:19:51
  41. ***************
  42. *** 9,27 ****
  43.    *  with parts from glibc
  44.    */
  45.   #include <stdio.h>
  46.   #if __STDC__
  47.   #  include <stddef.h>
  48.   #  ifndef EXIT_FAILURE
  49.   #    include <stdlib.h>        /* HP strikes again! */
  50.   #  endif
  51. ! #else
  52.   #  define EXIT_FAILURE    (1)        /* failure return value for exit() */
  53.   #  define EXIT_SUCCESS    (0)        /* success return value for exit() */
  54.   #endif
  55.   
  56.   int main()
  57.   {
  58. !     int i, n;
  59.       float x;
  60.       char name[50];
  61.       int exit_val = EXIT_SUCCESS;
  62. --- 9,30 ----
  63.    *  with parts from glibc
  64.    */
  65.   #include <stdio.h>
  66.   #if __STDC__
  67.   #  include <stddef.h>
  68.   #  ifndef EXIT_FAILURE
  69.   #    include <stdlib.h>        /* HP strikes again! */
  70.   #  endif
  71. ! #endif
  72. ! #ifndef EXIT_FAILURE
  73.   #  define EXIT_FAILURE    (1)        /* failure return value for exit() */
  74.   #  define EXIT_SUCCESS    (0)        /* success return value for exit() */
  75.   #endif
  76.   
  77.   int main()
  78.   {
  79. !     int i, j, n;
  80.       float x;
  81.       char name[50];
  82.       int exit_val = EXIT_SUCCESS;
  83. ***************
  84. *** 61,66 ****
  85. --- 64,76 ----
  86.       printf("Got:\tn = %d name = :%s:\n\n", n, name);
  87.       if(n != 1) exit_val |= EXIT_FAILURE;
  88.   
  89. +     /* input: FOO123 456 789 */
  90. +     /* output: n = 3 name = :FOO123: i=456 j=789 */
  91. +     n = scanf("%6s %d %d", name, &i, &j);
  92. +     printf("Expect:\tn = 3 name = :FOO123: i=456 j=789\n");
  93. +     printf("Got:\tn = %d name = :%s: i=%d j=%d\n\n", n, name, i, j);
  94. +     if(n != 3) exit_val |= EXIT_FAILURE;
  95.       /* input: 2 quarts of oil
  96.             10.0LBS      of       fertilizer
  97.             100ergs of energy
  98. ===================================================================
  99. RCS file: /net/acae127/home/bammi/etc/src/master/atari/test/tscanf.in,v
  100. retrieving revision 1.1
  101. diff -c -r1.1 tscanf.in
  102. *** 1.1    1992/03/26 21:49:31
  103. --- tscanf.in    1993/05/29 21:19:52
  104. ***************
  105. *** 1,6 ****
  106. --- 1,7 ----
  107.   25 54.32E-1 thompson
  108.   56789 0123 56a72
  109.   56789 0123 56a72
  110. + FOO123 456 789
  111.   2 quarts of oil                                                  
  112.   10.0LBS      of       fertilizer
  113.   100ergs of energy
  114.